import Layout from '@/views/layout';
export function all_routers() {
	return [
		{
			path: '',
			component: Layout,
			alwaysShow: false,
			name: 'home',
			meta: {
				title: '首页',
				icon: 'el-icon-location'
			},
			children: [{
				path: 'home',
				component: () => import('@/views/home'),
				meta: {
					title: '首页',
					name: 'homeIndex',
				},
				name: 'homeIndex'
			}]
		}, {
			path: '',
			component: Layout,
			alwaysShow: true,
			name: 'test',
			meta: {
				title: '测试模块',
				icon: 'el-icon-location'
			},
			children: [{
				path: '',
				alwaysShow: true,
				component: () => import('@/views/test'),
				meta: {
					title: '测试模块',
					name: 'testIndex',
					icon: 'el-icon-document'
				},
				name: 'testIndex',
				children:[{
					path:'test/one',
					component: () => import('@/views/test/one'),
					name: 'testOne',
					meta: {
						title: '测试模块一',
						name: 'testOne',
						icon: 'el-icon-document'
					},
					
				}]
			}]
		}, 
	]
}